<template>
  <div id="main" style="width: 500px; height: 400px"></div>
</template>

<script>
import * as echarts from 'echarts'
export default {
  created() {},
  mounted() {
    var myChart = echarts.init(document.getElementById('main'))
    // 绘制图表
    myChart.setOption({
      title: {
        text: '人力资源基础绩效表'
      },
      legend: {
        data: ['三月', '九月']
      },
      radar: {
        // shape: 'circle',
        indicator: [
          { name: '考勤', max: 30 },
          { name: '工资', max: 50000 },
          { name: '社保', max: 1000 },
          { name: '工作效率', max: 100 },
          { name: '知识分享', max: 100 },
          { name: '代码开发', max: 10000 }
        ]
      },
      series: [
        {
          name: 'Budget vs spending',
          type: 'radar',
          data: [
            {
              value: [27, 34000, 1000, 99, 90, 10000],
              name: '三月'
            },
            {
              value: [25, 46000, 800, 90, 80, 8000],
              name: '九月'
            }
          ]
        }
      ]
    })
  }
}
</script>

<style></style>
